<?php
  include("../admin-security.php");
  include("../inc/functions.php");
  include("../inc/db.class.php");
  include("../inc/connection.php");
  $order = safe_request_null("order");
  $name = safe_request_null("name");
  $title = safe_request_null("banner-title");
  $path = safe_request_null("image-path");
  $show = $_REQUEST['show'];
  $insert_banner = "insert into kunuki.banner(`name`, `title`, `path`, `order`, `show`) values ('$name', '$title', '$path', '$order', '$show' )";
  if(database::query("$insert_banner"))
  header("location ../profile.php?item=banner&ab=1");
  else
  header("location ../profile.php?item=banner&ab=0");
?>